# a=int(input("请输入一个整数："))
# a1=int(a/100)
# a2=int(a%100/10)
# a3=int(a%100%10)
# a=a1+a2*10+a3*100
# print(a)

# a=int(input("请输入一个整数："))
# b=int(input("请输入二个整数："))
# c=int(input("请输入三个整数："))
#
# max=a
# if max < b:
#     max = b
# if max < c:
#     max = c
#
# print(max)

a = int ( input(" 请输入年份：") )
if a % 100 == 0:
    if (a / 100) % 4 == 0:
        print(a,"是闰年")
    else:
        print(a,"是平年")
else:
    if a % 400 == 0 :
        print(a,"是闰年")
    else:
        print(a,"是平年")
